.avatar {
  background: #765bbd;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.avatar img {
  width: 22px;
  height: 22px;
}

.typing .content {
  position: relative;
}

.typing .content::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 16px;
  background: #d5d9da;
  animation: toggle 0.6s infinite;
  opacity: 0;
  left: var(--x);
  top: var(--y);
}

.content.user {
  margin: 10px 0 10px 40px;
  padding: 10px;
  border-radius: 10px;
  position: relative;
  display: inline-block;
  max-width: 90%;
  word-wrap: break-word;
  background-color: rgb(127, 247, 127);
}

.content.robot {
  margin: 10px 0 10px 40px;
  padding: 10px;
  border-radius: 10px;
  position: relative;
  display: inline-block;
  max-width: 90%;
  word-wrap: break-word;
}

.header {
  padding: 0;
  display: flex;
}

.logo {
  margin: auto;
  font-size: 20px;
}

.logo span {
  background: linear-gradient(white, #38495a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  font-weight: bolder;
  margin-right: 10px;
}

/* Think块样式 */
.think-block {
  background: rgba(247, 250, 252, 0.8);
  border-left: 3px solid #e5e7eb;
  border-radius: 4px;
  padding: 12px;
  margin: 8px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  color: #374151;
}

.think-block code {
  background: rgba(255,255,255,0.8) !important;
}

/* 保持与原有样式的协调 */
.markdown-body.robot { 
  padding: 16px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* 思考容器样式 */
.think-container {
  background: #f5f9ff;
  border: 1px solid #d0e3ff; 
  border-radius: 6px;
  margin: 12px 0;
  transition: 0.2s all ease;
}

/* 头部样式 */
.think-header {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3d8eff;
  font-size: 14px;
}

/* 箭头动画 */
.think-header .arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #3d8eff;
  transition: transform 0.2s;
}

/* 展开状态 */
.think-container.expanded .arrow {
  transform: rotate(90deg);
}

/* 完成状态 */
.think-header.completed {
  color: #666;
  background: #f9f9f9;
}

/* 思考内容区域 */
.think-content {
  padding: 12px 15px;
  border-top: 1px solid #e8f1ff;
  font-size: 14px;
  line-height: 1.6;
  color: #5E6772;
}

/* 正在思考中的样式 */
.think-container.thinking {
  background: #f0faff;
  border-color: #b3d9ff;
}

/* 完成状态的样式 */
.think-container.completed {
  background: #f5f5f7;
  border-color: #e0e0e0;
}

/* 保持原有的其他样式 */
.think-header {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a73e8;
  font-size: 14px;
}

/* 初始收起效果 */
.think-container.completed .think-content {
  display: none;
}

.think-container.completed.expanded .think-content {
  display: block;
}

/* 默认展示思考过程中的内容 */
.think-container.thinking .think-content {
  display: block;
}
